<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>Class message</title>
<link rel="stylesheet" href="../../boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="../../index.html" title="ODTONE 0.4">
<link rel="up" href="../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.dns.message_hpp" title="Header &lt;/home/carlos/Projectos/odtone/inc/odtone/net/dns/message.hpp&gt;">
<link rel="prev" href="frame.html" title="Struct frame">
<link rel="next" href="query.html" title="Struct query">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr><td valign="top"><img alt="'ODTONE - Open Dot Twenty One'" width="100" height="100" src="../.././images/logo.png"></td></tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="frame.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.dns.message_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="query.html"><img src="../../images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="odtone.dns.message"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Class message</span></h2>
<p>odtone::dns::message</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.dns.message_hpp" title="Header &lt;/home/carlos/Projectos/odtone/inc/odtone/net/dns/message.hpp&gt;">/home/carlos/Projectos/odtone/inc/odtone/net/dns/message.hpp</a>&gt;

</span>
<span class="keyword">class</span> <a class="link" href="message.html" title="Class message">message</a> <span class="special">{</span>
<span class="keyword">public</span><span class="special">:</span>
  <span class="comment">// <a class="link" href="message.html#odtone.dns.messageconstruct-copy-destruct">construct/copy/destruct</a></span>
  <a class="link" href="message.html#idp4551152-bb"><span class="identifier">message</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="message.html#idp4551784-bb"><span class="identifier">message</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="frame.html" title="Struct frame">frame</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  message&amp; <a class="link" href="message.html#idp4553600-bb"><span class="keyword">operator</span><span class="special">=</span></a><span class="special">(</span><span class="keyword">const</span> <a class="link" href="frame.html" title="Struct frame">frame</a> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="message.html#idp4553344-bb"><span class="special">~</span><span class="identifier">message</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="message.html#idp4448528-bb">public member functions</a></span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4448712-bb"><span class="identifier">tid</span></a><span class="special">(</span><span class="identifier">uint16</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4511528-bb"><span class="identifier">qr</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4512992-bb"><span class="identifier">opcode</span></a><span class="special">(</span><span class="identifier">uint8</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4514400-bb"><span class="identifier">aa</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4515880-bb"><span class="identifier">tc</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4517344-bb"><span class="identifier">rd</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4518808-bb"><span class="identifier">ra</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4520272-bb"><span class="identifier">z</span></a><span class="special">(</span><span class="keyword">bool</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4521672-bb"><span class="identifier">rcode</span></a><span class="special">(</span><span class="identifier">uint8</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4523120-bb"><span class="identifier">query</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="question.html" title="Struct question">question</a> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4524800-bb"><span class="identifier">answer</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4526496-bb"><span class="identifier">auth</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4528200-bb"><span class="identifier">add</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">uint16</span> <a class="link" href="message.html#idp4529904-bb"><span class="identifier">tid</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="message.html#idp4531024-bb"><span class="identifier">qr</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">uint8</span> <a class="link" href="message.html#idp4532144-bb"><span class="identifier">opcode</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="message.html#idp4533248-bb"><span class="identifier">aa</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="message.html#idp4534384-bb"><span class="identifier">tc</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="message.html#idp4535504-bb"><span class="identifier">rd</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="message.html#idp4536624-bb"><span class="identifier">ra</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">bool</span> <a class="link" href="message.html#idp4537744-bb"><span class="identifier">z</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">uint8</span> <a class="link" href="message.html#idp4538800-bb"><span class="identifier">rcode</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">uint16</span> <a class="link" href="message.html#idp4539904-bb"><span class="identifier">nquery</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">uint16</span> <a class="link" href="message.html#idp4541008-bb"><span class="identifier">nanswer</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">uint16</span> <a class="link" href="message.html#idp4542128-bb"><span class="identifier">nauth</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">uint16</span> <a class="link" href="message.html#idp4543248-bb"><span class="identifier">nadd</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="question.html" title="Struct question">question</a> <span class="special">&gt;</span> <a class="link" href="message.html#idp4544384-bb"><span class="identifier">query</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span> <a class="link" href="message.html#idp4545704-bb"><span class="identifier">answer</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span> <a class="link" href="message.html#idp4547048-bb"><span class="identifier">auth</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span> <a class="link" href="message.html#idp4548392-bb"><span class="identifier">add</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="message.html#idp4549744-bb"><span class="identifier">get_frame</span></a><span class="special">(</span><span class="identifier">frame_vla</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="idp19414640"></a><h2>Description</h2>
<p>DNS Message</p>
<p>The <a class="link" href="message.html" title="Class message">odtone::dns::message</a> is high level representation of an DNS message. It provides access to all fields of the DNS message header and to all resource records presented on the DNS Message.</p>
<p>The <a class="link" href="message.html" title="Class message">odtone::dns::message</a> can be set from an <a class="link" href="frame.html" title="Struct frame">odtone::dns::frame</a> that was received or it can create an <a class="link" href="frame.html" title="Struct frame">odtone::dns::frame</a> ready to be sent. </p>
<div class="refsect2">
<a name="idp19417248"></a><h3>
<a name="odtone.dns.messageconstruct-copy-destruct"></a><code class="computeroutput">message</code> 
        public
       construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><a name="idp4551152-bb"></a><span class="identifier">message</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Construct a default DNS Message.</p>
<p>The defaults for each field are: tid = 0; qr = false; opcode = 0; aa = false; tc = false; rd = false; ra = false; z = false; rcode = false; nquery = false; nanswer = false; nauth = false; nadd = false; </p>
</li>
<li class="listitem">
<pre class="literallayout"><a name="idp4551784-bb"></a><span class="identifier">message</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="frame.html" title="Struct frame">frame</a> <span class="special">&amp;</span> fm<span class="special">)</span><span class="special">;</span></pre>
<p>Construct a DNS Message parsing all fields from a frame.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">fm</code></span></p></td>
<td><p><code class="computeroutput"><a class="link" href="frame.html" title="Struct frame">odtone::dns::frame</a></code> from which to parse information. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout">message&amp; <a name="idp4553600-bb"></a><span class="keyword">operator</span><span class="special">=</span><span class="special">(</span><span class="keyword">const</span> <a class="link" href="frame.html" title="Struct frame">frame</a> <span class="special">&amp;</span> fm<span class="special">)</span><span class="special">;</span></pre>
<p>Extract the DNS Message fields from a given <code class="computeroutput"><a class="link" href="frame.html" title="Struct frame">odtone::dns::frame</a></code>.</p>
<p>

</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">fm</code></span></p></td>
<td><p><code class="computeroutput"><a class="link" href="frame.html" title="Struct frame">odtone::dns::frame</a></code> from which to extract information. </p></td>
</tr></tbody>
</table></div></td>
</tr>
<tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p><a class="link" href="message.html" title="Class message">odtone::dns::message</a> with the fields updated. </p></td>
</tr>
</tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><a name="idp4553344-bb"></a><span class="special">~</span><span class="identifier">message</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Destruct a DNS Message. </p>
</li>
</ol></div>
</div>
<div class="refsect2">
<a name="idp19435536"></a><h3>
<a name="idp4448528-bb"></a><code class="computeroutput">message</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4448712-bb"></a><span class="identifier">tid</span><span class="special">(</span><span class="identifier">uint16</span> tid<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Transaction Identifier.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">tid</code></span></p></td>
<td><p>The value of the DNS Message Transaction Identifier field. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4511528-bb"></a><span class="identifier">qr</span><span class="special">(</span><span class="keyword">bool</span> qr<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Query/Response Flag.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">qr</code></span></p></td>
<td><p>The value of the DNS Message Query/Response Flag field. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4512992-bb"></a><span class="identifier">opcode</span><span class="special">(</span><span class="identifier">uint8</span> opcode<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Operation Code.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">opcode</code></span></p></td>
<td><p>The value of the DNS Message Operation Code field. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4514400-bb"></a><span class="identifier">aa</span><span class="special">(</span><span class="keyword">bool</span> aa<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Authoritative Answer Flag.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">aa</code></span></p></td>
<td><p>The value of the DNS Message Authoritative Answer Flag field. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4515880-bb"></a><span class="identifier">tc</span><span class="special">(</span><span class="keyword">bool</span> tc<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Truncation Flag.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">tc</code></span></p></td>
<td><p>The value of the DNS Message Truncation Flag field. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4517344-bb"></a><span class="identifier">rd</span><span class="special">(</span><span class="keyword">bool</span> rd<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Recursion Desired.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">rd</code></span></p></td>
<td><p>The value of the DNS Message Recursion Desired field. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4518808-bb"></a><span class="identifier">ra</span><span class="special">(</span><span class="keyword">bool</span> ra<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Recursion Available.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">ra</code></span></p></td>
<td><p>The value of the DNS Message Recursion Available field. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4520272-bb"></a><span class="identifier">z</span><span class="special">(</span><span class="keyword">bool</span> z<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Zero.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">z</code></span></p></td>
<td><p>The value of the DNS Message Zero field. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4521672-bb"></a><span class="identifier">rcode</span><span class="special">(</span><span class="identifier">uint8</span> rcode<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Response Code.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">rcode</code></span></p></td>
<td><p>The value of the DNS Message Response Code field. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4523120-bb"></a><span class="identifier">query</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="question.html" title="Struct question">question</a> <span class="special">&gt;</span> query<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Question list.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">query</code></span></p></td>
<td><p>The value of the DNS Message Question list. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4524800-bb"></a><span class="identifier">answer</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span> answer<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Answer Record list.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">answer</code></span></p></td>
<td><p>The value of the DNS Message Answer Record list. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4526496-bb"></a><span class="identifier">auth</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span> auth<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Authority Record list.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">auth</code></span></p></td>
<td><p>The value of the DNS Message Authority Record list. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4528200-bb"></a><span class="identifier">add</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span> add<span class="special">)</span><span class="special">;</span></pre>
<p>Set the DNS Message Additional Record list.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">add</code></span></p></td>
<td><p>The value of the DNS Message Additional Record Count list. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">uint16</span> <a name="idp4529904-bb"></a><span class="identifier">tid</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Transaction Identifier.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Transaction Identifier field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="idp4531024-bb"></a><span class="identifier">qr</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Query/Response Flag.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Query/Response Flag field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">uint8</span> <a name="idp4532144-bb"></a><span class="identifier">opcode</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Operation Code.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Operation Code field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="idp4533248-bb"></a><span class="identifier">aa</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Authoritative Answer Flag.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Authoritative Answer Flag field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="idp4534384-bb"></a><span class="identifier">tc</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Truncation Flag.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Truncation Flag field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="idp4535504-bb"></a><span class="identifier">rd</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Recursion Desired.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Recursion Desired field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="idp4536624-bb"></a><span class="identifier">ra</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Recursion Available.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Recursion Available field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">bool</span> <a name="idp4537744-bb"></a><span class="identifier">z</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Zero.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Zero field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">uint8</span> <a name="idp4538800-bb"></a><span class="identifier">rcode</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Response Code.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Response Code field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">uint16</span> <a name="idp4539904-bb"></a><span class="identifier">nquery</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Question Count.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Question Count field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">uint16</span> <a name="idp4541008-bb"></a><span class="identifier">nanswer</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Answer Record Count.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Answer Record Count field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">uint16</span> <a name="idp4542128-bb"></a><span class="identifier">nauth</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Authority Record Count.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Authority Record Count field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">uint16</span> <a name="idp4543248-bb"></a><span class="identifier">nadd</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Additional Record Count.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The value of the DNS Message Additional Record Count field. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="question.html" title="Struct question">question</a> <span class="special">&gt;</span> <a name="idp4544384-bb"></a><span class="identifier">query</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Get the DNS Message Question list.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The DNS Message Question list. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span> <a name="idp4545704-bb"></a><span class="identifier">answer</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Get the DNS Message Answer Record list.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The DNS Message Answer Record list. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span> <a name="idp4547048-bb"></a><span class="identifier">auth</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Get the DNS Message Authority Record list.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The DNS Message Authority Record list. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">vector</span><span class="special">&lt;</span> <a class="link" href="resource_record.html" title="Struct resource_record">resource_record</a> <span class="special">&gt;</span> <a name="idp4548392-bb"></a><span class="identifier">add</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre>
<p>Get the DNS Message Additional Record list.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Returns:</span></p></td>
<td><p>The DNS Message Additional Record Count list. </p></td>
</tr></tbody>
</table></div>
</li>
<li class="listitem">
<pre class="literallayout"><span class="keyword">void</span> <a name="idp4549744-bb"></a><span class="identifier">get_frame</span><span class="special">(</span><span class="identifier">frame_vla</span> <span class="special">&amp;</span> fm<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre>
<p>Get the DNS Message Frame.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term">Parameters:</span></p></td>
<td><div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><code class="computeroutput">fm</code></span></p></td>
<td><p>A dynamic frame buffer to store the information. </p></td>
</tr></tbody>
</table></div></td>
</tr></tbody>
</table></div>
</li>
</ol></div>
</div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright &#169; 2009-2012 Universidade
      Aveiro<br>Copyright &#169; 2009-2012 Instituto
      de Telecomunica&#231;&#245;es - P&#243;lo Aveiro<p>
        This software is distributed under a license. The full license agreement
        can be found in the LICENSE in this distribution. This software may not be
        copied, modified, sold or distributed other than expressed in the named license
        agreement. This software is distributed without any warranty.
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="frame.html"><img src="../../images/prev.png" alt="Prev"></a><a accesskey="u" href="../../odtone_net_library.html#header..home.carlos.Projectos.odtone.inc.odtone.net.dns.message_hpp"><img src="../../images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../images/home.png" alt="Home"></a><a accesskey="n" href="query.html"><img src="../../images/next.png" alt="Next"></a>
</div>
</body>
</html>
